package com.yzi.utilitys
{
	public class ArrayUtility
	{
		public function ArrayUtility()
		{
			throw new Error("Static Class.");
		}
		
		static public function StringToArray($string:String): Array
		{
			var result:Array = new Array();
			for(var i:int = 0; i < $string.length; ++i) result.push($string.charAt(i));
			
			return result;
		}
		
		static public function DeleteOverlap($target:Array): Array
		{
			var result:Array = $target.concat();
			
			for(var i:int = 0; i < result.length; ++i)
			{
				for(var j:int = 0; j < result.length; ++j)
				{
					if(result[i] == result[j] && i != j) result.splice(j, 1);
				}
			}
			
			return result;
		}
	}
}